﻿$(function () {

})
function initCurrency(id, defaultValue, callback) {
    frame.ajax({
        url: '/Common/GetDictionaryCodeByCode?code=SettlementCurrency',
        type: 'get', 
        success: function (obj) {
            if (obj.success) {
                $("#" + id).frameSelect({ 
                    search: true,
                    data: obj.data,
                    default: defaultValue, 
                    onChange: callback
                });
            }
        }
    });
}

function initDate(id) {
    $("#" + id).datetimepicker({
        format: 'YYYY-MM-DD',
        showClear: true,
        locale: moment.locale('zh-cn'),
        widgetPositioning: {
            horizontal: 'left',
            vertical: 'bottom'
        },
        /*useCurrent: false,*/
        focusOnShow: false
    });
}